package cn.sdormitory.service;

import cn.sdormitory.basedata.entity.BDormitory;
import cn.sdormitory.basedata.vo.BDormitoryVO;
import cn.sdormitory.smartdor.entity.AdManualAttence;
import cn.sdormitory.smartdor.entity.SdAttence;
import cn.sdormitory.smartdor.vo.DormitoryAttenceVo;

import java.util.Date;
import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2021/10/27 14:20
 * @version：V1.0
 */
public interface AppManualAttenceService {
    List<DormitoryAttenceVo> getAppDorAttenceManual(String className, String storey, String accessDate,String buildingNo);
    List<BDormitoryVO> getAppDormitoryList();
    int addManualAttence(AdManualAttence adManualAttence);
    List<BDormitoryVO> getAppDorListByStorey(String buildingNo, String storey);
    Long getAppDorListByDorNo(String buildingNo,String storey,String dormitoryNo);

//    /**
//     * 查询宿舍考勤根据相关条件
//     * @param condition
//     * @return
//     */
//    List<SdAttence> getSdAttenceByCondition(SdAttence condition);

    /**
     * 获取宿舍考勤异常数据列表
     * @param query
     * @return
     */
    List<SdAttence> getSdAttenceExcList(SdAttence query);

    /**
     * 更新学生考勤数据
     * @param entity
     * @return
     */
    int updateStudentSdAttence(SdAttence entity);

    /**
     * 推送同步宿舍考勤消息
     * @param entity
     * @return
     */
    int publishSyncSdAttence(SdAttence entity);

    List<SdAttence> getMendCardStuList(SdAttence query);
}
